<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	    <style type="text/css">
			.page{
				width: 300px;
				height: 40px;
				margin: 0 auto;
				text-align: center;
				
			}
			.page li{
				list-style: none;
				display: inline-block;
				margin-right: 10px;
				float: left;
			}
	    </style>
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th >品牌ID</th>
			  <th >品牌名称</th>
			  <th >logo</th>
			  <th >排序</th>
			  <th >是否热门</th>
			  <th >操作</th>
			</tr>
			{{foreach from="$data" value="$v"}}
				<tr>
					<td>{{$v['bid']}}</td>
					<td>{{$v['bname']}}</td>
					<td>
						{{if value="$v['logo']"}}
						<img src="{{__ROOT__}}/{{$v['logo']}}" height="50" />
						{{else}}
						<img src="{{__ROOT__}}/Upload/huawei.png" height="50">
						{{endif}}
					</td>
					<td>{{$v['sort']}}</td>
					<td>
						{{if value="$v['hot'] eq 1"}}
						是
						{{else}}
						否
						{{endif}}
					</td>
					<td>
						<a href="{{U('edit',array('bid'=>$v['bid']))}}" class="btn btn-sm btn-warning">编辑</a>
						<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定删除吗')) location.href='{{U('del',array('bid'=>$v['bid']))}}'">删除</a>
					</td>
				</tr>
			{{endforeach}}
		</table>
	
	</body>
</html>
